<?
# Brasil ***************************************

//params of the your dataBase server
// parametros do seu servidor
require("db_config.inc");

// classe (class)
//require("mid_excel.class");

//Estanciar
$mid_excel = new MID_SQLPARAExel;

// data to the file(Dados para o arquivo)
$sql = "SELECT * FROM tblreceipt";

//$DBConnection->GetConnection2 ();
$TableName = SetTempTable($sql);
//$TableName = "ais_memorial";
$sql = "SELECT * FROM $TableName";

//$sql = "select * from ais_memorial where ledger ='0401' and nobkt like 'B%'";

//ex.:
//$mid_excel->mid_sqlparaexcel("DataBaseName", "TABLEname", RECORDSET, "FILEname");
$mid_excel->mid_sqlparaexcel(OfficeDB1, "$TableName", $sql, "ReceiptSetupReport");
?>